<?php
class storage
{
    public function __construct() {

		$this->_table = 'xn_erp_storage';
		$this->_pk    = 'id';
    }
    
    public function get_all()
    {
        $storage = pdo_getall($this->_table);
        return $storage;
    }
    public function get_name_by_id($id)
    {
        $sname = pdo_getcolumn($this->_table, array('id' => $id), 'sname');
        return $sname;
    }
}
